package main

import (
	"gitee.com/thomasgw/gms/service"
	"gitee.com/thomasgw/gms/server"
)

func main(){
	ch := make(chan interface{})
	serverDemo := server.NewServer(ch)
	serviceDemo := service.NewService(ch)
	if serviceDemo == nil {
		return
	}
	serviceDemo.Register()
	serviceDemo.Start()
	serverDemo.Start()
	for {
		<- ch
	}
}
